package optimizationrunner.config;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

/**
 * 
 * @author Daniil Chivilikhin
 *
 */
public class OptimizationRunnerConfig {
	private Properties properties;
	
	public OptimizationRunnerConfig(String configFileName) {
		properties = new Properties();
		try {
			properties.load(new FileInputStream(new File(configFileName)));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public String solutionDirName() {
		return properties.getProperty("solution-dir-name");
	}
	
	public int numberOfExperiments() {
		return Integer.parseInt(properties.getProperty("number-of-experiments"));
	}
	
	public String acoConfigFileName() {
		return properties.getProperty("aco-config-file-name");
	}
	
	public String taskConfigFileName() {
		return properties.getProperty("task-config-file-name");
	}
}
